Vim creating additional files when creating/editing .txt file

I'm learning to use Vim in Xcode and within Terminal. I've used VimTutor to learn the basics. The issue I've run into when creating a text file is additional, garbage files being created whenever I create or edit a .txt file -

vim index.txt produces the following:

How do I prevent vim from creating the .index.html.un~ and index.html~ files? It's annoying me and git.

Thanks, jake

Both vim and Git have their own support resources and I think you’ll get better answers there than here. However…

These backups are controlled by the backup option. If, inside vim, you enter the command :help set, you’ll get lots of help about how options work.

It's annoying … git.

You can also configure Git to ignore these backup files. This is explained in the gitignore man page.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Vim creating additional files when creating/editing .txt file
 
 
Q